
<?php //echo $javascript->link('jquery.autocomplete.js');?>
<?php //echo $html->css('jquery.autocomplete.css'); ?>


<?php 
//	$where = $model_name."."."is_deleted = '0'";
//	$all_names = classregistry::init($model_name)->findAll($where,$model_name.".".$field_name);
//	$namelist = "[";
// 	foreach($all_names as $name)
// 	{
// 		$names = $name[$model_name][$field_name];
// 		$namelist = $namelist."'".$names."',";
// 	}
// 	$namelist = $namelist."]";
?>

<script>
// $(function(){
//	 	var names = "<?php echo $namelist;?>";
//	 	var widget_name = "<?php echo $widget_name;?>";
//	    $('#'+widget_name).autocomplete(eval(names), {
//	        width: 200,
//	        max: 10,
//	    });
//});
</script>